<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>EHS</title>
	<link href="__ROOT__/Public/Css/lwy2011.css" rel="stylesheet" type="text/css" media="screen" />
   <style>
    .list_box{width:100%;}
	.list_box .tit{width:100%;line-height:20px;border:1px solid #ccc}
    .list_box dl{width:100%;padding:5px;}
    .list_box dl dt li{list-style:none;width:25%;float:left;text-align:center;font-weight:bold;color:#330033;margin:0;padding:0;}
    .list_box dl dd{width:24%;float:left;text-align:center;border:1px solid #ccc;margin:0;padding:0}
   </style>
    <script type="text/javascript" src="__ROOT__/Public/Js/WdatePicker.js"></script>
    <script type="text/javascript" src="__ROOT__/Public/Js/jquery-1.5.0.min.js"></script>
 	<!--<script language="javascript" type="text/javascript" src="/main/Admin/Tpl/default//js/riqi.js"></script>-->
    <script  type="text/javascript">
	  	function loadLog(){
		   $("#loadImage").css('display','block');
		   $("#listTable").hide();
		   var from=$('#from').val();
		   var to=$('#to').val();
		   var type=$('#type').val();
		   var page=$('#page').val();
		   var uid=$('#uid').val();
		//alert(from+'/'+to+'/'+type+'/'+page+'/'+uid);
		   $.post(
			   "__URL__/loadLogAjax",
			   {'type':type,
                'page':page,
				'from':from,
				'to':to,
				'uid':uid			   
 			   },
			   function(data){
			    $("#loadImage").css('display','none');
			   //$("#result").html('');
			    $("#list").html(data);
				//$('#result').html("<h3>aaaa</h3");
				//document.write(data);
			   },
			   'html'
			);	
			return false;  	
		}
		
		function jumpTo(page){
		  var page=$('#page').val(page);
		  loadLog();
		}
    </script>
  </head>
  <body onload="" style="margin:0;padding:0;overflow:hidden;">
   <form id="form1" name="form1" method="post" action="">
   <table  border="0" style="border:none;margin-bottom:10px;width:760px;">
   <tr>
    <th colspan="4" style="text-align:left;line-height:20px;"><span class="tit">{$title}</span></th>
   </tr>
   <tr>
     <td colspan="4" style="border:none;text-align:left">选择时间段：从
       <input name="from" id="from" class="Wdate" type="text" size="14" maxlength="10" onClick="WdatePicker()"/>  
       到
         <input name="to" id="to" class="Wdate" type="text" size="14" maxlength="10" onClick="WdatePicker()" />
		 <input type="hidden" name="uid" id="uid" value="{$uid}" />
		 <input type="hidden" name="type" id="type" value="{$type}" />
		 <input type="hidden" name="page" id="page" value="1" />
		 <input name="" type="submit" onclick="return loadLog();" value="查找" />
    </td>
   </tr>
  </table>
  </form>
  <div id="result" style="height:auto;margin:0 auto;" >
  <img src="__ROOT__/Public/images/loading.gif" style="margin-left:200px;display:none" id="loadImage"/>
  <div id="list"></div>
  </div>
    <table style="width:700px;" id="listTable">	
  <tr>
    <td >操作</td><td>操作内容</td><td><?=$type==1?'花费':'收益'?></td><td>日期</td>
  </tr>
  <volist name='list' id='item'>
		<tr><td height="23">{$item['type']}</td><td>{$item['title']}</td><td>{$item['price']}</td><td>{$item['datetime']}</td></tr>
  </volist>
  <tr>
    <td colspan="4">同<?=count($list)?>条记录；共{$totalM}金额</td>
  </tr>
  <tr>
	<td colspan="4">{$nav}</td>
    </tr>
</table>
 </body>
</html>
